# Copyright (c) 2009 Daropia Project (www.daropia.org)
#
# This file is part of Daropia and is available under the terms
# of the GNU General Public Licence version 2.0 or later.


# First version of the database : An Users table alone

Class.new(Sequel::Migration) do

  def up
    create_table(:users) do
      primary_key :id
      String :login, :unique => true
      String :email, :unique => true
      String :encrypted_password
      Text :salt
    end
  end

  def down
    drop_table(:users)
  end

end
